import http from "@/utils/http";
// 请求响应返回参数
interface HttpResponse {
  code: number;
  msg: string;
  obj: any;
}

export const login = (data: {
  loginname: string,
  loginpsw: string
}): Promise<HttpResponse> => http.post("/login", data);
